<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Admin后台 - Layui</title>
    <link  rel="stylesheet" type="text/css" th:href="@{/static/css/layui.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/mystyle.css}"/>
    <script th:src="@{/static/js/jquery-1.11.3.min.js}"></script>
    <script th:src="@{/static/js/myjs.js}"/>
    <script th:src="@{/static/js/layer.js}"/>
    <script th:src="@{/static/js/layui.js}"></script>
    <script th:src="@{/static/js/vue.js}"></script>
</head>
<body>


<div class="layui-row allbg">
    <div class="layui-col-xs11 layui-col-xs-offset0.5">
        <div th:insert="~{admin/index::headsidebar}"></div>

        <div th:insert="~{admin/index::leftsidebar}"></div>
        <div class="layui-col-xs9 layui-col-sm8 layui-col-md8 layui-col-lg9 mainright">
            <div class="rightall">
                <form class="rightall-form"  th:action="@{/books/add}" method="post" lay-filter="example">

                    <div class="rightall-title">
                        <h1 style="display: inline;color: whitesmoke">添加书籍</h1>
                    </div>
                    <div class="r-update">
<!--                        <input type="hidden" name="bookDate" th:value="${}">-->
                        <div>
                            <label class="layui-form-label">书名:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="bookName" id="bookName" lay-verify="title" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div>
                            <label class="layui-form-label">版本:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="bookVersion" lay-verify="title" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div>
                            <label class="layui-form-label">作者:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="author" lay-verify="title" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div>
                            <label class="layui-form-label">数量:</label>
                            <div class="layui-input-block" >
                                <input type="text" name="amount" id="add_amount" lay-verify="number" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">备注:</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" name="remark"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn" id="add_btn" lay-submit="" lay-filter="demo1">立即提交</button>
                            <a type="button" th:href="@{/books/comlist}" class="layui-btn" lay-submit="" lay-filter="demo1">取消</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <div th:insert="~{admin/index::footersidebar}"></div>
    </div>
</div>
<script>
    useSIDEBAR
    useNotNull
    useNumberNotNull
</script>
</body>
<script>

</script>
</body>
</html>
